package com.Khan.SocialRescueSys.dao;

import com.Khan.SocialRescueSys.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Khan Liu
 * @date 2022/4/4 9:57
 */
@Mapper
@Repository
public interface CommentDao {

    /**查询父级对象*/
    List<Comment> getCommentByForceId(Long forceId);

    /**添加一个评论*/
    int saveComment(Comment comment);
}
